package com.iot.mqtt.init;

import com.iot.mqtt.service.Impl.AliCloudImpl;
import com.iot.mqtt.service.Impl.MqttServiceImpl;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class Run {
    @PostConstruct
    public void connect(){
        AliCloudImpl.subTopics();
        MqttServiceImpl.connectMqtt();
    }
}